package com.laich.springcloud.fallback.impl;

import com.laich.springcloud.entity.User;
import com.laich.springcloud.feign.RemoteUserService;


public class RemoteUserFeignImpl implements RemoteUserService {

	@Override
	public User findByUserName(String username) {
		User u=new User();
		u.setId(1l);
		u.setUsername("fbUser");
		u.setPassword("Hystrix");
		return u;
	}

	@Override
	public User getUser(String id) {
		User u=new User();
		u.setId(2l);
		u.setUsername("fbUser2");
		u.setPassword("Hystrix2");
		return u;
	}

}
